<?php
	#查看最小的女同学
	include "common.php";
	//$sql = "drop table if exists abc33333333333333333";
	//mysql_query($sql);exit;
	$sql = "select * from stu where sex=2 and year(birthday)='1992'";#sql语句
	$result = mysql_query($sql);#发送SQL语句
	$row=array();#保存结果
	if(mysql_num_rows($result)){
		while($r = mysql_fetch_assoc($result)){
			$row[]=$r;
		}
	}
	mysql_free_result($result);
	mysql_close($db);
	echo "<pre>";
	print_r($row);

?>